public class Company {
    Empoyee[] empoyees;
    double salaries = 0;
    Company(Empoyee[]empoyees){
        this.empoyees = empoyees;
    }
    public double salarisePay(){
        for(Empoyee i : empoyees)
        {
            salaries += i.earnings();
        }
        return salaries;
    }
}
